package com.ruoyi.app.controller.manager;

import com.ruoyi.app.business.project.ProjectSettleBusiness;
import com.ruoyi.app.config.annotation.SysMangerAuth;
import com.ruoyi.common.core.web.domain.APIResult;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 管理员紧急处理工具(接口不开放)
 *
 * @author Zane
 * @since 2025-09-27
 */
@SysMangerAuth
@RestController
@RequestMapping("/manager")
public class ManagerController {

  @Resource
  private ProjectSettleBusiness projectSettleBusiness;


  /**
   * 临时结算
   */
  @PutMapping("project/settle")
  public APIResult<Void> settle() {
    //获得处理钥匙
    projectSettleBusiness.settle();
    return APIResult.success();
  }

}
